package com.atchangsha.system.service;

import com.atchangsha.system.common.utils.Result;
import com.atchangsha.system.dto.PlaceAnOrderDTO;
import com.atchangsha.system.vo.ResultVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atchangsha.system.common.utils.PageUtils;
import com.atchangsha.system.entity.OrderEntity;

import java.util.List;
import java.util.Map;

/**
 * @author 卓越班项目第二组
 * @date 2022-04-22 00:49:59
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    Result placeAnOrder(PlaceAnOrderDTO placeAnOrderDTO);

    Result listAll();

    Result updateOrder(OrderEntity toEntity);

    ResultVO sum();

    ResultVO sumListAll();
}

